package com.mjfeed.util;
/**
 * @description 参数bean api也用 修改时注意
 * @author zhaominglei
 * @date 2014-9-7
 */
public class ParamBean {
	private static final int DEFAULT_PAGE_SIZE = 50; // 默认每页记录数
	private String url; //分页url
	private int page; //页码
	private int pageSize; //每页记录数
	private String startDate; //开始时间
	private String endDate; //结束时间 
	private String keyword; //关键字
	private String field; //属性名
	
	private Long productId; //商品id
	
	private String username; //用户名 
	private String password; //密码
	private String sign; //签名
	
	private Long receiverId; //收货地址id
	private String address; //地址 
	private String consignee; //收货人
	private Boolean isDefault; //是否默认
	private String phone; //电话
	private String zipCode; //邮编
	private Long areaId; //地区id
	
	private String email; //邮箱
	private String name; //姓名
	private String nPassword; //新密码
	
	private String cartData; //同步购物车时用 数据格式productId!quantity,productId!quantity
	private String cartItemData; //更新购物车时用 数据格式cartItemId!productId!quantity
	
	private Boolean isInvoice; //是否需要发票
	private String invoiceinfo; //发票抬头
	private Long paymentMethodId; //支付方式id
	private Long shippingMethodId; //配送方式id
	private Long cartId; //购物车id
	
	private Long productCategoryId; //商品分类id
	private Long forumTopicId; //论坛话题id
	private int psort; // 商品排序  0 默认时间倒序 1价格升序 2价格倒序  
	private int forumType; //论坛话题类型
	private int orderStatus; //订单状态  1待付款 2待发货 3待收货
	
	public String getUrl() {
		return url;
	}
	public void setUrl(String url) {
		this.url = url;
	}
	public int getPage() {
		if (page <= 0) {
			page = 1;
		}
		return page;
	}
	public void setPage(int page) {
		this.page = page;
	}
	public int getPageSize() {
		if (pageSize <= 0) {
			return DEFAULT_PAGE_SIZE;
		}
		return pageSize;
	}
	public void setPageSize(int pageSize) {
		this.pageSize = pageSize;
	}
	public String getStartDate() {
		return startDate;
	}
	public void setStartDate(String startDate) {
		this.startDate = startDate;
	}
	public String getEndDate() {
		return endDate;
	}
	public void setEndDate(String endDate) {
		this.endDate = endDate;
	}
	public String getKeyword() {
		return keyword;
	}
	public void setKeyword(String keyword) {
		this.keyword = keyword;
	}
	public String getField() {
		return field;
	}
	public void setField(String field) {
		this.field = field;
	}
	public Long getProductId() {
		return productId;
	}
	public void setProductId(Long productId) {
		this.productId = productId;
	}
	public String getUsername() {
		return username;
	}
	public void setUsername(String username) {
		this.username = username;
	}
	public String getPassword() {
		return password;
	}
	public void setPassword(String password) {
		this.password = password;
	}
	public String getSign() {
		return sign;
	}
	public void setSign(String sign) {
		this.sign = sign;
	}
	public Long getReceiverId() {
		return receiverId;
	}
	public void setReceiverId(Long receiverId) {
		this.receiverId = receiverId;
	}
	public String getAddress() {
		return address;
	}
	public void setAddress(String address) {
		this.address = address;
	}
	public String getConsignee() {
		return consignee;
	}
	public void setConsignee(String consignee) {
		this.consignee = consignee;
	}
	public Boolean getIsDefault() {
		return isDefault;
	}
	public void setIsDefault(Boolean isDefault) {
		this.isDefault = isDefault;
	}
	public String getPhone() {
		return phone;
	}
	public void setPhone(String phone) {
		this.phone = phone;
	}
	public String getZipCode() {
		return zipCode;
	}
	public void setZipCode(String zipCode) {
		this.zipCode = zipCode;
	}
	public Long getAreaId() {
		return areaId;
	}
	public void setAreaId(Long areaId) {
		this.areaId = areaId;
	}
	public String getEmail() {
		return email;
	}
	public void setEmail(String email) {
		this.email = email;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public String getnPassword() {
		return nPassword;
	}
	public void setnPassword(String nPassword) {
		this.nPassword = nPassword;
	}
	public String getCartData() {
		return cartData;
	}
	public void setCartData(String cartData) {
		this.cartData = cartData;
	}
	public String getCartItemData() {
		return cartItemData;
	}
	public void setCartItemData(String cartItemData) {
		this.cartItemData = cartItemData;
	}
	public String getInvoiceinfo() {
		return invoiceinfo;
	}
	public void setInvoiceinfo(String invoiceinfo) {
		this.invoiceinfo = invoiceinfo;
	}
	public Long getPaymentMethodId() {
		return paymentMethodId;
	}
	public void setPaymentMethodId(Long paymentMethodId) {
		this.paymentMethodId = paymentMethodId;
	}
	public Long getShippingMethodId() {
		return shippingMethodId;
	}
	public void setShippingMethodId(Long shippingMethodId) {
		this.shippingMethodId = shippingMethodId;
	}
	public Boolean getIsInvoice() {
		return isInvoice;
	}
	public void setIsInvoice(Boolean isInvoice) {
		this.isInvoice = isInvoice;
	}
	public Long getCartId() {
		return cartId;
	}
	public void setCartId(Long cartId) {
		this.cartId = cartId;
	}
	public Long getProductCategoryId() {
		return productCategoryId;
	}
	public void setProductCategoryId(Long productCategoryId) {
		this.productCategoryId = productCategoryId;
	}
	public Long getForumTopicId() {
		return forumTopicId;
	}
	public void setForumTopicId(Long forumTopicId) {
		this.forumTopicId = forumTopicId;
	}
	public int getPsort() {
		return psort;
	}
	public void setPsort(int psort) {
		this.psort = psort;
	}
	public int getForumType() {
		return forumType;
	}
	public void setForumType(int forumType) {
		this.forumType = forumType;
	}
	public int getOrderStatus() {
		return orderStatus;
	}
	public void setOrderStatus(int orderStatus) {
		this.orderStatus = orderStatus;
	}
}
